package main.java.com.lee.thread;

import java.time.LocalDate;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2021/12/3
 */
public class DateFilter {
	public static void main(String[] args) {

//		LocalDate s1 = LocalDate.of(2020, 3, 1);
//		LocalDate e1 = LocalDate.of(2020, 4, 1);
//
//		LocalDate s2 = LocalDate.of(2020, 4, 2);
//		LocalDate e2 = LocalDate.of(2020, 5, 1);
//
//		LocalDate s3 = LocalDate.of(2020, 5, 4);
//		LocalDate e3 = LocalDate.of(2020, 6, 1);
//
//		LocalDate s4 = LocalDate.of(2020, 3, 3);
//		LocalDate e4 = LocalDate.of(2020, 6, 8);
//
//		LocalDate s5 = LocalDate.of(2020, 6, 5);
//		LocalDate e6 = LocalDate.of(2020, 7, 15);
//
//
//		List<LocalDate> total = List.of(date1, date2, date3, date4, date5, date6, date7, date8, date9, date10);
//
//		LocalDate min = total.stream().min(LocalDate::compareTo).get();
//		LocalDate max = total.stream().max(LocalDate::compareTo).get();
//
//		DateRange result = new DateRange(min, max);
//
//


		Date date1 = new Date();
		Date date2 = new Date();

		System.out.println(date1.equals(date2));

	}

//	private List<DateRange> cal(List<DateRange> source, DateRange iterm) {
//		return source.stream().map(i -> {
//
//		})
//				.collect(Collectors.toList());
//	}


	static class DateRange {
		LocalDate beginDate;

		LocalDate endDate;

		public LocalDate getBeginDate() {
			return beginDate;
		}

		public void setBeginDate(LocalDate beginDate) {
			this.beginDate = beginDate;
		}

		public LocalDate getEndDate() {
			return endDate;
		}

		public void setEndDate(LocalDate endDate) {
			this.endDate = endDate;
		}

		public DateRange(LocalDate beginDate, LocalDate endDate) {
			this.beginDate = beginDate;
			this.endDate = endDate;
		}
	}
}


